.popup {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  position: fixed;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content:center;
  align-items: center;
}

.popup_opened {
  visibility: visible;
  opacity: 1;
}

.popup__container {
  position: relative;
  width: 430px;
  height: fit-content;
  background-color: #fff;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup__info-img {
  margin-top: 60px;
}

.popup__title {
  margin: 34px 0 41px;
  color: #000;
  font-weight: 900;
  font-size: 24px;
  line-height: 29px;
}

.popup__text {
  text-align: center;
}

.popup__close-button {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 32px;
  height: 32px;
  border: none;
  background-image: url(../../images/CloseIcon.svg);
  background-color: transparent;
  background-size: cover;
  transition: opacity 0.5s linear;
}

.popup__close-button:hover {
  opacity: 0.8;
  cursor: pointer;
}

@media screen and (max-width: 580px) {
  .popup__close-button {
    right: 0;
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 460px) {
  .popup__container {
    width: 282px;
  }
  .popup__title {
    margin-top: 24px;
    margin-bottom: 66px;
    font-size: 18px;
    line-height: 22px;
  }
}